using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity.ModelConfiguration;
using WMSNet.Model.Models;

namespace WMSNet.Data.Configuration
{
    public class StockTakingOrderConfiguration : EntityTypeConfiguration<StockTakingOrder>
    {
        public StockTakingOrderConfiguration()
        {
            Property(g => g.StockTakingOrderID).IsRequired();
            Property(g => g.AdditionalContent).IsOptional();
            Property(g => g.Created).IsOptional();
            
            Property(g => g.Modified).IsOptional();
            
            Property(g => g.AreaName).IsOptional();
            Property(g => g.CountingDate).IsOptional();
            Property(g => g.LocationName).IsOptional();
            Property(g => g.Operator).IsOptional();
            Property(g => g.State).IsOptional();
            Property(g => g.UnitLoadLabel).IsOptional();
            Property(g => g.StockTakingID).IsRequired();
        }
    }
}
